package co.com.manuel.gastos;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;
import co.com.manuel.gastos.login.LoginActivity;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// quitamos barra superior
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.main_activity);
		estilosFuentes();
		Intent nextActivity = null;
		// lo instanciamos
		nextActivity = new Intent(MainActivity.this, LoginActivity.class);
		// vamos a la actividad menu principal
		startActivity(nextActivity);
	}
	
	private void estilosFuentes() {
		//fuente
		Typeface font = Typeface.createFromAsset(getAssets(), "Roboto-Thin.ttf");		
		
		//estilos Titulo app
		TextView textTitulo;
		textTitulo = (TextView) findViewById(R.id.textTitulo); 
		textTitulo.setTextColor(Color.WHITE);
		textTitulo.setTypeface(font); 
        

	}

}
